From 9ee7338f603241d13be11affc642c5925140ca56 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 5 Jan 2007 18:24:00 +0000 Subject: [PATCH] Take the scroll arrow into account when drawing the background. (#393166, 2007-01-05 Matthias Clasen * gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into account when drawing the background. (#393166, Benjamin Berg) svn path=/trunk/; revision=17084 --- ChangeLog | 5 +++++ gtk/gtkmenu.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 453924e480..bf3d17ee91 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-01-05 Matthias Clasen + + * gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into + account when drawing the background. (#393166, Benjamin Berg) + 2007-01-05 Behdad Esfahbod * gtk/gtklabel.c (get_layout_location): Fix broken width computation, diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c index 70f9f9b4ed..291f31a9ae 100644 --- a/gtk/gtkmenu.c +++ b/gtk/gtkmenu.c @@ -2512,12 +2512,17 @@ gtk_menu_paint (GtkWidget *widget, } else if (event->window == menu->bin_window) { + gint y = -border_y + menu->scroll_offset; + + if (menu->upper_arrow_visible && !menu->tearoff_active) + y -= scroll_arrow_height; + gtk_paint_box (widget->style, menu->bin_window, GTK_STATE_NORMAL, GTK_SHADOW_OUT, NULL, widget, "menu", - - border_x, menu->scroll_offset - border_y, + - border_x, y, width, height); } } -- 2.30.2